package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 试卷表
 * </p>
 *
 * @author rock
 * @since 2021-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Exampaper extends MyPage implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 试卷编号
     */
    @TableId(value = "exam_id", type = IdType.AUTO)
    private Integer examId;

    /**
     * 试卷名
     */
    private String examTitle;

    /**
     * 创建时间
     */
    private Date examCreatetime;

    /**
     * 考试时间
     * */
    @TableField(exist = false)
    private Date examTime;

    /**
     * 试卷满分
     */
    private Integer examFullscore;

    /**
     * 科目编号
     */
    private Integer subjectId;

    /**
     * 试题内容
     * */
    @TableField(exist = false)
    private List<Question> examList;

    /**
     * 随机生成试卷的单选题 题目数
     * */
    @TableField(exist = false)
    private Integer radioNumber;

    /**
     * 随机生成试卷的判断题 题目数
     * */
    @TableField(exist = false)
    private Integer booleanNumber;


    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getExamCreatetime() {
        return examCreatetime;
    }

    public void setExamCreatetime(Date examCreatetime) {
        this.examCreatetime = examCreatetime;
    }
}
